home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 6: Level 6
/
17 Bit - Level 6 (1998)(Epic Marketing)[!].iso
/
quartz
/
q1082.dms
/
q1082.adf
/
src.lzh
/
Fig
/
font.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-18
|
889b
|
42 lines
/*
* FIG : Facility for Interactive Generation of figures
*
* Copyright (c) 1985 by Supoj Sutanthavibul (supoj@sally.UTEXAS.EDU)
* January 1985.
* 1st revision : Aug 1985.
*
* %W% %G%
*/
#include "fig.h"
#include "resources.h"
#include "font.h"
PIX_FONT bold_font;
PIX_FONT roman_font;
PIX_FONT canvas_font;
#ifndef X11
#ifdef AMIGA
extern struct TextFont * fig_font;
init_font()
{
bold_font=roman_font=canvas_font=fig_font;
}
#else
init_font()
{
bold_font = pf_open("/usr/lib/fonts/fixedwidthfonts/screen.b.14");
roman_font = pf_open("/usr/lib/fonts/fixedwidthfonts/screen.r.14");
if (bold_font == NULL) bold_font = pf_default();
if (roman_font == NULL) roman_font = pf_default();
canvas_font = roman_font;
}
#endif AMIGA
#else
init_font()
{
canvas_font = roman_font = XLoadQueryFont(tool_d, NORMAL_FONT);
bold_font = XLoadQueryFont(tool_d, BOLD_FONT);
}
#endif X11